<template>
  <div style="height: 80vh;">
    <vxe-table
        :align="allAlign"
        :data="tableData">
      <vxe-table-column type="seq" title="序号" width="60"></vxe-table-column>
      <vxe-table-column field="name" title="Name"></vxe-table-column>
      <vxe-table-column field="sex" title="Sex"></vxe-table-column>
      <vxe-table-column field="age" title="Age"></vxe-table-column>
    </vxe-table>
    <qSelect v-model="value2" :options="options" valueKey="value" labelKey="label"/>
    <br>
  </div>
</template>

<script>
import qSelect from '@/components/select/EasySelect'
export default {
  components: {
    qSelect
  },
  data () {
    return {
      allAlign: null,
      value2: [],
      options: [],
      tableData: [
        { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', age: 28, address: 'vxe-table 从入门到放弃' },
        { id: 10002, name: 'Test2', role: 'Test', sex: 'Women', age: 22, address: 'Guangzhou' },
        { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', age: 32, address: 'Shanghai' },
        { id: 10004, name: 'Test4', role: 'Designer', sex: 'Women', age: 24, address: 'Shanghai' }
      ]
    }
  },
  methods: {

  },
  created() {
    const list2 = []
    for (let index = 0; index < 2000; index++) {
      list2.push({ label: `选项${index}`, value: index })
    }
    this.data2 = list2
    this.list2 = list2
  }
}
</script>

